package com.evan.designpatterns.proxy.dbroute.db;

/**
 * @author :liujiapeng01
 * @date :2019-03-14 18:37
 **/
public class DynamicDatasourceEntity {


    private DynamicDatasourceEntity() {
    }


    private final static ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<>();


    public static String get() {
        return THREAD_LOCAL.get();
    }

    public static void set(String year) {
        THREAD_LOCAL.set(year);
    }

    public static void remove() {
        THREAD_LOCAL.remove();
    }


}
